package my.study.designpattern.abstractfactory.example1;

public class MacRam implements Ram {
	private String ramId;
	private int capacity;

	public MacRam(String ramId) {
		this.ramId = ramId;
		print("MacRam  " + this.ramId + "  is created");
	}

	public int getCapacity() {
		return this.capacity;
	}

	public String getRamId() {
		return this.ramId;
	}

	public void printRam() {
		print("MacRam" + "  id  " + this.ramId + "  frequency  "
				+ this.capacity);
	}

	public void setCapacity(int capacity) {
		this.capacity = capacity;
	}

	private void print(Object o) {
		System.out.println(o);
	}
}
